import http from '../utils/request'

//获取的我收入项
export const incomelist = data => {
  return http.request({
    url: `/house/tExpend/GetMyInComeList`,
    method: 'post',
    data: JSON.stringify(data)
  })
}
//获取的我支出项
export const expendlist = data => {
  return http.request({
    url: `/house/tExpend/expendlist`,
    method: 'post',
    data: JSON.stringify(data)
  })
}
//标记已完成
export const editorcomplete = params => {
  return http.request({
    url: `/house/tExpend/editorcomplete`,
    method: 'get',
    params
  })
}
//修改支出项
export const update = data => {
  return http.request({
    url: `/house/tExpend/update`,
    method: 'post',
    data: JSON.stringify(data)
  })
}
//新增支出项
export const save = data => {
  return http.request({
    url: `/house/tExpend/save`,
    method: 'post',
    data: JSON.stringify(data)
  })
}

export const savetwo = data => {
  return http.request({
    url: `/house/tExpend/saveTwo`,
    method: 'post',
    data: JSON.stringify(data)
  })
}

